package com.maimao.info.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maimao.model.info.Coupon;
import com.maimao.model.info.vo.CouponSearch;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2021/1/5 4:34 下午
 */
public interface CouponMapper extends BaseMapper<Coupon> {
    List<Coupon> selectByShopIdAndParams(@Param("shopId") Long shopId, @Param("couponSearch") CouponSearch couponSearch);

    int updateStatusById(@Param("id") Long id, @Param("deleted") Integer deleted);

    List<Coupon> selectAll();
}
